
{{ content() }}

<div class="page-header">
    <h2>用户注册</h2>
</div>

{#{ form('register', 'id': 'registerForm') }#}
<form action={{ url("register") }} id="registerForm"  method="post">

    <fieldset>

        <div class="control-group">
            <label for="name" class="control-label">中文名称</label>
			<div class="controls">
                <input type="text" id="name" name="name" class="form-control" value="{{ name }}" />
                <p class="help-block" color="red">(必填项)</p>
                <div class="alert alert-warning" id="name_alert">
                    <strong>注意!</strong> 请输入您的中文名称
                </div>
            </div>
        </div>

        <div class="control-group">
            <label for="username" class="control-label">登录用户名称</label>
            <div class="controls">
                <input type="text" id="username" name="username" class="form-control" value="{{ username }}" /> 
                <p class="help-block">(必填项)</p>
                <div class="alert alert-warning" id="username_alert">
                    <strong>注意!</strong> 请输入登录用户名称 
                </div>
            </div>
        </div>

        <div class="control-group">
            <label for="email" class="control-label">电子邮件</label>
            <div class="controls">
                <input type="text" id="email" name="email" class="form-control" value="{{ email }}" />
                <p class="help-block">(必填项)</p>
                <div class="alert alert-warning" id="email_alert">
                    <strong>注意!</strong> 请输入电子邮件地址
                </div>
            </div>
        </div>

        <div class="control-group">
            <label for="password" class="control-label">密码</label>
            <div class="controls">
                <input type="password" id="password" name="password" class="form-control" value="{{ password }}" />
                <p class="help-block">(至少8个字符)</p>
                <div class="alert alert-warning" id="password_alert">
                    <strong>注意!</strong> 请输入有效的密码
                </div>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="repeatPassword">再次输入密码</label>
            <div class="controls">
                <input type="password" id="repeatPassword" name="repeatPassword" class="input-xlarge" value="{{ repeatPassword }}" /> 
                <div class="alert" id="repeatPassword_alert">
                    <strong>注意!</strong> 两次输入密码不一致
                </div>
            </div>
        </div>

        <div class="form-actions">
            <input type="submit" value="Register" class="btn btn-primary" onclick="return SignUp.validate();" />
            <p class="help-block">注册成功，就意味着你已经接受我们的相关政策和隐私条款。</p>
        </div>

    </fieldset>
</form>
